home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_aet_dynalight.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  60 lines

  1. # Jones 3D Cog Script
  2. #
  3. # aet_DynaLight.cog
  4. #
  5. # [TRM] [TL]
  6. #
  7. # Simple dynamic light pulseing cog.     
  8. #
  9. # 10/21/98 RT: Added radius
  10. #
  11. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  12. #
  13. # ========================================================================================
  14. symbols
  15.  
  16. message    startup
  17.  
  18. thing    thing0
  19. thing    thing1
  20. thing    thing2
  21. thing    thing3
  22. thing    thing4
  23. thing    thing5
  24. thing    thing6
  25.  
  26. flex    rval=0.5    local
  27. flex    gval=0.5    local
  28. flex    bval=0.5    local
  29. flex    radius=0.1    local
  30. flex    speed=1.0    local
  31.  
  32. vector    color        local
  33.  
  34. int        numThings=7    
  35. int        index        local
  36.  
  37. end
  38.  
  39. # ========================================================================================
  40. code
  41.  
  42. startup:
  43.  
  44. Sleep(5.0);    # remove this later
  45.  
  46. color = VectorSet(rval, gval, bval);
  47.  
  48. for (index = 0; index <= numThings; index = index + 1)
  49.     {
  50.     if (thing0[index] > -1)
  51.         {
  52.         SetThingLight(thing0[index], color, radius, speed);
  53.         }
  54.     }
  55.  
  56. return;
  57.  
  58. # ........................................................................................
  59. end
  60.